
         /======================================================\
         |  VT100 and VT52 Compatable Modes ESCape Codes Chart  |
         \======================================================/

VT52 Compatable Mode
--------------------

ESC A           Cursor up
ESC B           Cursor down
ESC C           Cursor right
ESC D           Cursor left
ESC F           Special graphics character set
ESC G           Select ASCII character set
ESC H           Cursor to home
ESC I           Reverse line feed
ESC J           Erase to end of screen
ESC K           Erase to end of line
ESC Ylc         Direct cursor address (See note 1)
ESC Z           Identify (See note 2)
ESC =           Enter alternate keypad mode
ESC >           Exit alternate keypad mode
ESC 1           Graphics processor on (See note 3)
ESC 2           Graphics processor off (See note 3)
ESC <           Enter ANSI mode

Note 1:  Line and column numbers for direct cursor addresses are single
         character codes whose values are the desired number plus 37 octal.
         Line and column numbers start at 1.

Note 2:  Response to ESC Z is ESC/Z.

Note 3:  Ignored if no graphics processor stored in the VT100

ANSI Compatable Mode
--------------------

ESC [ Pn A      Cursor up Pn lines
ESC [ Pn B      Cursor down Pn lines
ESC [ Pn C      Cursor forward Pn characters (right)
ESC [ Pn D      Cursor backward Pn characters (left)
ESC [ Pl;PcH    Direct cursor addressing, where Pl is line#, Pc is column#
ESC [ Pl;Pcf    Same as above
ESC D           Index
ESC M           Reverse index
ESC 7           Save cursor and attributes
ESC 8           Restore cursor and attributes

ESC #3          Change this line to double-height top half
ESC #4          Change this line to double-height bottom half
ESC #5          Change this line to single-width single-height
ESC #6          Change this line to double-width single-height

ESC [ Ps..Ps m  Ps refers to selective parameter. Multiple parameters are
                separated by the semicolon character (073 octal). The param-
                eters are executed in order and have the following meaning:

                0 or none               All attributes off
                1                       Bold on
                4                       Underscore on
                5                       Blink on
                7                       Reverse video on

                Any other parameters are ignored.

ESC [ K         Erase from cursor to end of line
ESC [ 0K        Same
ESC [ 1K        Erase from beginning of line to cursor
ESC [ 2K        Erase line containing cursor
ESC [ J         Erase from cursor to end of screen
ESC [ 0J        Same
ESC [ 2J        Erase entire screen

ESC [ Ps..Ps q  Programmable LEDs: Ps are selective parameters separated by
                semicolons (073 octal) and executed in order, as follows:

                0 or None               All LEDs off
                1                       L1 On
                2                       L2 On
                3                       L3 On
                4                       L4 On

                Any other parameter values are ignored.

The following select alternative character sets. The G1 set is invoked for
use by the control code SO (Shift Out), the G0 set is invoked by the control
code SI (Shift In).

G0 designator   G1 designator           Character set

ESC ( A         ESC ) A                 United Kingdom (UK)
ESC ( B         ESC ) B                 United States (USASCII)
ESC ( 0         ESC ) 0                 Special graphics/line drawing set
ESC ( 1         ESC ) 1                 Alternative character ROM
ESC ( 2         ESC ) 2                 Alternative graphic ROM

ESC K Pt;Pb r   Set top scrolling window (Pt) and bottom scrolling window
                (Pb). Pb must be greater than Pb.

ESC H           Set tab at current column
ESC [ g         Clear tab at current column
ESC [ 0g        Same
ESC [ 3g        Clear all tabs

Modes
-----

Mode Name       Mode            To set seq      Mode            To reset seq

Line feed/new   New line        ESC [20h        Line feed       ESC [20l
Cursor key      Application     ESC [?1h        Cursor          ESC [?1l
ANSI/VT52       ANSI            n/a             VT52            ESC [?2l
Column mode     132 col         ESC [?3h        80 col          ESC [?3l
Scrolling       Smooth          ESC [?4h        Jump            ESC [?4l
Screen mode     Reverse         ESC [?5h        Normal          ESC [?5l
Origin mode     Relative        ESC [?6h        Absolute        ESC [?6l
Wraparound      On              ESC [?7h        Off             ESC [?7l
Autorepeat      On              ESC [?8h        Off             ESC [?8l
Interface       On              ESC [?9h        Off             ESC [?9l

Reports
-------

ESC [ 6n        Cursor position report
ESC [ Pl;PcR            (response; Pl=line#; Pc=column#)
ESC [ 5n        Status report
ESC [ c                 (response; terminal Ok)
ESC [ 0c                (response; teminal not Ok)
ESC [ c         What are you?
ESC [ 0c        Same
ESC [?1;Ps c            response; where Ps is option present:

                        0               Base VT100, no options
                        1               Preprocessor option (STP)
                        2               Advanced video option (AVO)
                        3               AVO and STP
                        4               Graphics processor option (GO)
                        5               GO and STP
                        6               GO and AVO
                        7               GO, STP, and AVO

ESC c           Causes power-up reset routine to be executed
ESC #8          Fill screen with "E"
ESC [ 2;Ps y    Invoke Test(s), where Ps is a decimal computed by adding the
                numbers of the desired tests to be executed:

                        1               Power up test
                        2               Data loop back
                        4               EIA modem control signal test
                        8               Repeat test(s) indefinitely

